﻿@model AdminNewUserModel
@{ ViewBag.Title = "Create New User"; }
<p>Use this form to register an account for another user.</p>
<p>
    Provide the user name and email address below. A password will be randomly generated and sent to the email address specified.
    You will fill out the personal details (name, title, roles, etc) on the next step.
</p>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(false, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Account Information</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <p class="buttons">
                <input type="submit" value="Continue" />
            </p>
        </fieldset>
    </div>
}